package org.edu.modules.growth.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class QueryConditionItem implements Serializable {
    private String rule;
    private String type;
    private String val;
    private String field;
    public QueryConditionItem(){

    }

    public QueryConditionItem(String rule, String type, String val, String field) {
        this.rule = rule;
        this.type = type;
        this.val = val;
        this.field = field;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    @Override
    public String toString() {
        return "QueryCondition{" +
                "rule='" + rule + '\'' +
                ", type='" + type + '\'' +
                ", val='" + val + '\'' +
                ", field='" + field + '\'' +
                '}';
    }
}
